package com.itheima.tcp.demo1;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.logging.SocketHandler;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Socket st=new Socket("127.0.0.1",10000);
        OutputStream outputStream = st.getOutputStream();
        outputStream.write("abc".getBytes());
        st.close();


    }
}
